package com.hwl.eduservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwl.eduservice.pojo.Subject;

import java.util.List;

/**
 * <p>
 * 课程科目 Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-09-21
 */
public interface SubjectMapper extends BaseMapper<Subject> {

    /**
     * 使用sql获取所有的课程分类
     */
    List<Subject> selectNestedListByParentId(String parentId);
}
